import framework.Manager;
import framework.Product;
/**
 * @Author:DarknessShadow
 * @description:主测试程序
 * @date 2020/5/12 14:11
 */
public class Main {
    public static void main(String[] args) {
        Manager manager = new Manager();
        UnderlinePen upen = new UnderlinePen('~');
        MessageBox mbox = new MessageBox('*');
        MessageBox sbox = new MessageBox('/');
        manager.register("Strong message", upen);
        manager.register("warning box", mbox);
        manager.register("slash box", sbox);

        Product p1 = manager.create("Strong message");
        p1.use("hello , world");
        Product p2 = manager.create("warning box");
        p2.use("hello, world.");
        Product p3 = manager.create("slash box");
        p3.use("hello, world.");
    }
}
